<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
  <meta name="verify-v1" content="6i/N6+rlQ/L2Ro4akvocmVo22ayXRZ2WbpdVkxtzuwM=" />
  <meta name="y_key" content="107d857063b8f9ec" />
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <meta http-equiv="Content-Style-Type" content="text/css; charset=UTF-8" />
  <meta http-equiv="keywords" content="" />
  <meta http-equiv="description" content="" />
  <link rel="shortcut icon" href="/eng/favicon.ico" />
  <link rel="start" href="/eng/index.html" title="<bean:message key="cstp100.001"/>" />
  <link rel="help" href="/eng/sitemap/index.html" title="<bean:message key="cstp100.002"/>" />
  <title><bean:message key="cstp100.000" /></title>
  <%@ include file="../common/common_css.jsp"%>
  <%@ include file="../common/common_js.jsp" %>
  <%@ include file="../common/menuLink.jsp" %>
  <script type="text/javascript" src="${f:url('/js/menu.js')}"></script>
  <script language="JavaScript">
  <!--
    // 初期表示
    function func_load(){
      // オートコンプリート無効化
      func_disabled_auto_complete();
    }

    // ダウンロード
    function func_download(fileName){
      var f = document.forms[0];
      f.action = "${f:url('/cslt/cslt101/download?fileName=')}" + fileName;
      f.submit();
    }
  //-->
  </script>
</head>

<body onload="func_load();">
  <div id="screenMode">

    <div id="container">
      <a name="top" id="top"></a>

      <!-- header -->
      <%@ include file="../common/header.jsp"%>

  <s:form action="/cslt/cslt101" >

      <div id="maincontents" class="clear">

        <div id="colLeft">

          <!-- Menu -->
          <%@ include file="../common/menu.jsp"%>

        </div>
        <!-- colLeft -->

        <div id="colRight">

          <h1><bean:message key="cslt101.001" /></h1>
          <c:if test="${cslt101FormList == null}">
            <html:errors property="cslt101FormListNotFound" />
          </c:if>
          <c:if test="${cslt101FormList != null}">
            <div class="anchorlink">
              <ul>
                <c:forEach var="eCatalogList" varStatus="sCatalogList" items="${ catalogList }">
                  <li><a href="#${ f:h(eCatalogList) }">${f:h(eCatalogList)}</a></li>
                </c:forEach>
              </ul>
            </div>

            <c:forEach var="eCatalogList" varStatus="sCatalogList" items="${catalogList}">
              <h2 id="${ f:h(eCatalogList) }">${ f:h(eCatalogList) }</h2>

              <table>

                <colgroup>
                  <col width="300px" />
                  <col width="100px" />
                  <col width="100px" />
                  <col width="200px" />
                </colgroup>

                  <tr>
                    <th><bean:message key="cslt101.002" /></th>
                    <th><bean:message key="cslt101.003" /></th>
                    <th><bean:message key="cslt101.004" /></th>
                    <th><bean:message key="cslt101.005" /></th>
                  </tr>

                <c:forEach var="eFormList" varStatus="sFormList" items="${cslt101FormList}">

                <c:choose>
                  <c:when test="${ eFormList.userLevel == '2' }">
                  <c:if test="${ eCatalogList == eFormList.catalog && eFormList.level == '2' }">
                    <tr>
                      <td><a href="javascript:void(0)" onclick="func_download('${eFormList.fileName}')">${f:h(eFormList.fileName)}</a></td>
                      <td><fmt:setLocale value="en_US" /><fmt:formatDate type="date" dateStyle="MEDIUM" value="${ eFormList.updateDate }" pattern="dd-MMM-yyyy" /></td>
                      <td>${ f:h(eFormList.fileSize) }Bytes</td>
                      <td><div class="wspace" style="width:200px;">${ f:h(eFormList.explanation) }</div></td>
                    </tr>
                    </c:if>
                  </c:when>
                  <c:otherwise>
                  <c:if test="${ eCatalogList == eFormList.catalog }">
                    <tr>
                      <td><a href="javascript:void(0)" onclick="func_download('${eFormList.fileName}')">${f:h(eFormList.fileName)}</a></td>
                      <td><fmt:setLocale value="en_US" /><fmt:formatDate type="date" dateStyle="MEDIUM" value="${ eFormList.updateDate }" pattern="dd-MMM-yyyy" /></td>
                      <td>${ f:h(eFormList.fileSize) }Bytes</td>
                      <td><div class="wspace" style="width:200px;">${ f:h(eFormList.explanation) }</div></td>
                    </tr>
                    </c:if>
                  </c:otherwise>
                </c:choose>


                </c:forEach>

              </table>

                <p class="gotoPageTop"><a href="#top"><bean:message key="cscm100.004" /></a></p>

             </c:forEach>

          </c:if>
        </div>
        <!-- colRight -->

      </div>
      <!-- maincontents -->

      <%@ include file="../common/session.jsp" %>

  </s:form>

      <!-- footer -->
      <%@ include file="../common/footerToTopNone.jsp"%>

    </div>
    <!-- container -->

  </div>
  <!-- screenMode -->

</body>

</html>